﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Protal.Validators;
using Microhard.Core.DBUtility;

namespace Microhard.Protal.Models
{
    [FluentValidation.Attributes.Validator(typeof(ProductModelValidator))]
    public class ProductModel : BasePermissionModel
    {
        [Microhard.Core.DBUtility.ModelPKID]
        public Guid ProductID { set; get; }
        public string Name { set; get; }
        public string Decription { set; get; }
        public DateTime CreateTime { set; get; }
        public Guid CategoryID { set; get; }
        public bool Status { set; get; }
        public string StatusDisplay
        {
            get
            {
                return Status == true ? "有效" : "无效";
            }
        }
    }
}
